from app import celery,db
import logging

logger = logging.getLogger(__name__)
@celery.task(bind=True,ignore_result=False,soft_time_limit=10)
def celery_test(self):
    try:
        print("芜湖起飞")
        logger.info("this is a test")
    except Exception as e:
        self.retry(exc=e, countdown=10,max_retries=3)